<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>用户登录日志列表</title>
	<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
	<link rel="stylesheet" type="text/css" href="/static/common/common.css" />
	<style type="text/css">
		
	</style>
</head>
<body class="body-container">
	<div>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
			<legend>用户登录日志列表</legend>
		</fieldset>		
	</div>
			
	<!-- table表格数据 -->
	<div class="content-container">
		<table class="layui-hide" id="layerTable" lay-filter="layerTable"></table>
	</div>

	<script type="text/html" id="layuiTableToolbar">
  		<div class="layui-btn-container">
    				
  		</div>
	</script>
	
	<script src="/static/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
	<script src="/static/layui/layui.all.js" type="text/javascript"></script>
	<script src="/static/common/common.js" type="text/javascript"></script>
	<script type="text/javascript" th:inline="none">
		$(document).ready(function() {
		
		})
		
		// table
		layui.use('table', function(){
	        var table = layui.table;
	        table.render({
	            elem: '#layerTable'	
	            ,url:'/sysUser/selectUserLoginLogPageList'
	          	//,toolbar: '#layuiTableToolbar'
	       		,title: '角色数据表'		
				,height:600
				,method:'post'
				,limit:10
				,limits:[10,20,30]
				,where: {}
	            ,request: {
	                pageName: 'currentPage' //页码的参数名称，默认：page
	                ,limitName: 'pageSize' 	//每页数据量的参数名，默认：limit
	            }
	            ,response: {		
	                statusName: 'code' 		//数据状态的字段名称，默认：code
	                ,statusCode: 200 		//成功的状态码，默认：0
	                ,msgName: 'msg' 		//状态信息的字段名称，默认：msg
	                ,countName: 'total'  	//数据总数的字段名称，默认：count
	                ,dataName: 'dataObject' //数据列表的字段名称，默认：data
				}	
	            ,cols: [[		
	            	{field:'userId', title: '用户id'}
	            	,{field:'mainUserId', title: '主账号id'}
	            	,{field:'loginIp', title: '登录IP地址'}	
	                ,{field:'loginTime', title: '登录时间', sort: true,templet:'<div>{{ commonDateFormat(d.loginTime,"yyyy-MM-dd hh:mm:ss")}}</div>'}
	            ]]	
	            ,page: true
	            ,done: function(res, curr, count){	
	            	
	            }
	        });  
    	});
		
	</script>
</body>
</html>